package com.zy.dp.strategy.example4;

public class DbLog implements LogStrategy
{

	@Override
	public void log(String msg)
	{
		if (msg != null && msg.trim().length() > 5)
		{
			@SuppressWarnings("unused")
			int a = 5 / 0;
		}

		System.out.println("现在把'" + msg + "'记录到数据库中");
	}

}
